package com.huawei.crm.sample.infrastructure.outbound.persistence.product.converter;

import com.huawei.crm.sample.domain.product.model.aggragate.Product;
import com.huawei.crm.sample.infrastructure.outbound.persistence.product.po.ProductPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface ProductPOConverter {
    ProductPOConverter INSTANCE = Mappers.getMapper(ProductPOConverter.class);

    ProductPO toPO(Product product);
    Product toDomain(ProductPO po);
} 